package itdep.domain.student;

import ga.hibernate.OrderedEnum;
import ga.i18n.Translatable;
import itdep.domain.TranslationType;

import java.util.Collection;

/**
 * @author $Author: ikhalopik $
 * @version $Revision: 11 $   $Date: 2010-06-16 10:18:57 +0000 (Wed, 16 Jun 2010) $
 */
public enum EducationType implements OrderedEnum, Translatable {
	FREE(0, "free"),
	PAID_25(25, "paid-25"),
	PAID_40(40, "paid-40"),
	PAID_50(50, "paid-50"),
	PAID_60(60, "paid-60"),
	PAID_75(75, "paid-75"),
	PAID_80(80, "paid-80"),
	PAID_100(100, "paid-100");

	private TranslationType translationType = TranslationType.STANDARD;
	private String type = "education-type";
	private String code;
	private int paymentRate;

	EducationType(int paymentRate, String code) {
		this.code = code;
		this.paymentRate = paymentRate;
	}

	public int getPaymentRate() {
		return paymentRate;
	}

	public int getOrder() {
		return paymentRate;
	}

	public String getTranslationType() {
		return type;
	}

	public String getTranslationCode() {
		return code;
	}

	public Collection<String> getTranslationVariants() {
		return translationType.getVariants();
	}
}